
using AutoMapper;
using SOEI.Solution.Customized.Dtos;
using SOEI.Solution.DomainEntities.PurQualificationAudit;
using SOEI.Solution.DomainEntities.PurQualificationAudit.Dtos;
using SOEI.Solution.StructEntities;

namespace SOEI.Solution.CustomDtoAutoMapper
{

    /// <summary>
    /// 配置Member的AutoMapper映射
    /// 前往 <see cref="SolutionApplicationModule"/>的AbpAutoMapper配置方法下添加以下代码段
    /// PurFamilyMemberDtoAutoMapper.CreateMappings(configuration);
    /// </summary>
    public static class PurFamilyMemberDtoAutoMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap<PurFamilyMember, PurFamilyMemberListDto>();
            configuration.CreateMap<PurFamilyMemberListDto, PurFamilyMember>();

            configuration.CreateMap<PurFamilyMemberEditDto, PurFamilyMember>();
            configuration.CreateMap<PurFamilyMember, PurFamilyMemberEditDto>();

            configuration.CreateMap<PurFamilyInfo, PurFamilyMember>();
            configuration.CreateMap<PurFamilyMember, PurFamilyInfo>();

            configuration.CreateMap<PurFamilyInfo, PurFamilyMemberChange>();
            configuration.CreateMap<PurFamilyMemberChange, PurFamilyInfo>();
        }
    }
}